<?php
include("inc/global.inc");
include("inc/search_page.php");
$url="search.php";
$thepage=$_GET['page']?$_GET['page']:1;
$maxpage=20;
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?=$_GET[subject]?>，招标搜索-三帝招标网最新招标信息，找招标信息上三帝招标网</title>
<meta name="description" content="<?=$_GET[subject]?>，招标搜索，三帝招标网是一个专业招标网站，提供最新、权威、准确、及时的招标信息，是您值得信赖的招标网，三帝招标网实时更新国内公共建设项目招标、工程招标、采购招标、企事业单位招标信息，三帝招标网一站式服务，让您足不出户获取招标信息。" />
<meta name="keywords" content="<?=$_GET[subject]?>，招标搜索，招标网，三帝招标网，工程招标，项目招标，采购招标，招标信息，最新招标信息，2010年最新招标信息" />
<link href="/css/body.css" rel="stylesheet" type="text/css" />
<link href="/css/head.css" rel="stylesheet" type="text/css" />
<link href="/css/foot.css" rel="stylesheet" type="text/css" />
<link href="/css/list.css" rel="stylesheet" type="text/css" />
</head>
<body>
<?php
include("inc/head_top.php");
?>
<div id="mian" class="topside6 side">
<div class="title1">当前位置: <a href="/">三帝招标</a> >> <?=$_GET[subject]?></div>
<div class="onl"></div>
</div>
<div id="mian" class="topside6">
<div class="rightbox downside6">
  <div class="rightmain">
    <div class="title size14 b">最新招标项目</div>
    <div class="RtInfo4">
      <div class="div_3">
        <ul>
<?php
$rs=@mysql_query("select id,news_title from news where type_id=1 and n_sh=1  order by news_time desc,id desc limit 20");
while($row=@mysql_fetch_array($rs)){
?>
<li><a href="/zhaobiao/<?=$row['id']?>.html" target="_blank"  class="link_1"><?=mb_substr($row[news_title],0,18,'utf-8')?></a></li><?php }?>
                  </ul>
      </div>
    </div>
    <div class="onl"></div>
  </div>
  
  </div>
<div class="leftmain content sideyellow1">
  <div class="biaoti">
<div class="title3 size14"><?=$l_row[type_name]?>列表</div>
  <ul class="newslist">
<?php
	 $rs=@mysql_query("select id,news_time,news_title from news where type_id='1' and n_sh=1 and news_title like '%$_GET[subject]%' order by news_time desc,id desc limit ".($thepage-1)*$maxpage.",$maxpage");
	 while($row=@mysql_fetch_array($rs)){
	 ?>
     <li><span><?=date("Y-m-d",strtotime($row[news_time]))?></span><a href="/zhaobiao/<?=$row['id']?>.html" target="_blank"><?=mb_substr($row[news_title],0,30,'utf-8')?></a></li>
<?php }
$rs2=@mysql_query("select count(id) from news where type_id='1' and n_sh=1 and news_title like '%$_GET[subject]%'");
$totalrecord=@mysql_result($rs2,0); 
$totalpage=ceil($totalrecord/$maxpage);
@mysql_free_result($rs2);
?>
  </ul>
<div class="page">
<div class="pageleft">
<ul>
<?php pages($thepage,$totalpage,$maxpage,5);?>
</ul>
</div>
<div class="pageright">
<form name="pageform" method="post" action="" onSubmit="return onCheckPage()"> 
共<?=$totalpage?>页　到
<input type="text" name="page" class="input-txt" size="5" maxlength="5">页
<input type="submit" value="确定" class="but">
</form>
<script language="javascript"> 
function onCheckPage(){
var page = parseInt(document.pageform.page.value); 
if(isNaN(page)){
alert("请输入数字(1,<?=$totalpage?>)");
return false; 
}
if(page<=0){
page =1; 
}
if(page ><?=$totalpage?>){
page=<?=$totalpage?>;
}
if(page>1){
document.pageform.action = "/zb/<?=$l_row[type_name]?>-<?=$_GET[id]?>/"+page+".html"; 
}else{
document.pageform.action = "/zb/<?=$l_row[type_name]?>-<?=$_GET[id]?>/1.html"; 
}
return true;
}
</script>
  </div>
<div class="onl"></div>
</div>
  </div>
  </div>
<div class="onl"></div>
</div>
<?php
include("inc/foot.php");
?>
</BODY>
</HTML>

